

<!DOCTYPE html>
<html lang="zh-CN" data-default-color-scheme=auto>



<head>
  <meta charset="UTF-8">
  <link rel="apple-touch-icon" sizes="76x76" href="/img/favicon.png">
  <link rel="icon" href="/img/favicon.png">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
  <meta name="theme-color" content="#2f4154">
  <meta name="author" content="Fly542">
  <meta name="keywords" content="">
  
    <meta name="description" content="此命令可显示每个进程的栈跟踪,且可显示每个线程的栈状态。pstack 命令必须由相应进程的属主或 root 运行。可以使用 pstack 来确定进程挂起的位置。此命令允许使用的唯一选项是要检查的进程的 PID。请参见 proc(1) 手册页。 这个命令在排查进程问题时非常有用，比如我们发现一个服务一直处于work状态（如假死状态，好似死循环），使用这个命令就能轻松定位问题所在；可以在一段时间内，多">
<meta property="og:type" content="article">
<meta property="og:title" content="pstack 跟踪进程栈">
<meta property="og:url" content="http://fly542.cn/2020/08/20/03%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/03linux/03pstack%E8%B7%9F%E8%B8%AA%E8%BF%9B%E7%A8%8B%E6%A0%88/index.html">
<meta property="og:site_name" content="Fly542 技术沉淀">
<meta property="og:description" content="此命令可显示每个进程的栈跟踪,且可显示每个线程的栈状态。pstack 命令必须由相应进程的属主或 root 运行。可以使用 pstack 来确定进程挂起的位置。此命令允许使用的唯一选项是要检查的进程的 PID。请参见 proc(1) 手册页。 这个命令在排查进程问题时非常有用，比如我们发现一个服务一直处于work状态（如假死状态，好似死循环），使用这个命令就能轻松定位问题所在；可以在一段时间内，多">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2020-08-20T04:42:53.000Z">
<meta property="article:modified_time" content="2022-12-30T03:33:01.392Z">
<meta property="article:author" content="Fly542">
<meta property="article:tag" content="linux">
<meta property="article:tag" content="tools">
<meta name="twitter:card" content="summary_large_image">
  
  
  <title>pstack 跟踪进程栈 - Fly542 技术沉淀</title>

  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4/dist/css/bootstrap.min.css" />


  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/github-markdown-css@4/github-markdown.min.css" />
  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/hint.css@2/hint.min.css" />

  
    
    
      
      <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/highlight.js@10/styles/github-gist.min.css" />
    
  

  
    <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3/dist/jquery.fancybox.min.css" />
  


<!-- 主题依赖的图标库，不要自行修改 -->

<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_ba1fz6golrf.css">



<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_lbnruvf0jn.css">


<link  rel="stylesheet" href="/css/main.css" />

<!-- 自定义样式保持在最底部 -->


  <script id="fluid-configs">
    var Fluid = window.Fluid || {};
    var CONFIG = {"hostname":"fly542.cn","root":"/","version":"1.8.14","typing":{"enable":true,"typeSpeed":70,"cursorChar":"_","loop":false},"anchorjs":{"enable":true,"element":"h1,h2,h3,h4,h5,h6","placement":"right","visible":"hover","icon":""},"progressbar":{"enable":true,"height_px":3,"color":"#29d","options":{"showSpinner":false,"trickleSpeed":100}},"copy_btn":true,"image_zoom":{"enable":true,"img_url_replace":["",""]},"toc":{"enable":true,"headingSelector":"h1,h2,h3,h4,h5,h6","collapseDepth":0},"lazyload":{"enable":true,"loading_img":"/img/loading.gif","onlypost":false,"offset_factor":2},"web_analytics":{"enable":false,"baidu":null,"google":null,"gtag":null,"tencent":{"sid":null,"cid":null},"woyaola":null,"cnzz":null,"leancloud":{"app_id":null,"app_key":null,"server_url":null,"path":"window.location.pathname","ignore_local":false}},"search_path":"/local-search.xml"};
  </script>
  <script  src="/js/utils.js" ></script>
  <script  src="/js/color-schema.js" ></script>
<meta name="generator" content="Hexo 6.0.0"></head>


<body>
  <header style="height: 70vh;">
    <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand" href="/">
      <strong>Fly542 技术沉淀</strong>
    </a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/">
                <i class="iconfont icon-home-fill"></i>
                首页
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/archives/">
                <i class="iconfont icon-archive-fill"></i>
                归档
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/categories/">
                <i class="iconfont icon-category-fill"></i>
                分类
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/tags/">
                <i class="iconfont icon-tags-fill"></i>
                标签
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/about/">
                <i class="iconfont icon-user-fill"></i>
                关于
              </a>
            </li>
          
        
        
          <li class="nav-item" id="search-btn">
            <a class="nav-link" target="_self" href="javascript:;" data-toggle="modal" data-target="#modalSearch" aria-label="Search">
              &nbsp;<i class="iconfont icon-search"></i>&nbsp;
            </a>
          </li>
        
        
          <li class="nav-item" id="color-toggle-btn">
            <a class="nav-link" target="_self" href="javascript:;" aria-label="Color Toggle">&nbsp;<i
                class="iconfont icon-dark" id="color-toggle-icon"></i>&nbsp;</a>
          </li>
        
      </ul>
    </div>
  </div>
</nav>

    <div class="banner" id="banner" parallax=true
         style="background: url('/img/default.png') no-repeat center center;
           background-size: cover;">
      <div class="full-bg-img">
        <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.3)">
          <div class="page-header text-center fade-in-up">
            <span class="h2" id="subtitle" title="pstack 跟踪进程栈">
              
            </span>

            
              <div class="mt-3">
  
  
    <span class="post-meta">
      <i class="iconfont icon-date-fill" aria-hidden="true"></i>
      <time datetime="2020-08-20 12:42" pubdate>
        2020年8月20日 下午
      </time>
    </span>
  
</div>

<div class="mt-1">
  
    <span class="post-meta mr-2">
      <i class="iconfont icon-chart"></i>
      2.5k 字
    </span>
  

  
    <span class="post-meta mr-2">
      <i class="iconfont icon-clock-fill"></i>
      
      
      21 分钟
    </span>
  

  
  
</div>

            
          </div>

          
        </div>
      </div>
    </div>
  </header>

  <main>
    
      

<div class="container-fluid nopadding-x">
  <div class="row nomargin-x">
    <div class="d-none d-lg-block col-lg-2"></div>
    <div class="col-lg-8 nopadding-x-md">
      <div class="container nopadding-x-md" id="board-ctn">
        <div class="py-5" id="board">
          <article class="post-content mx-auto">
            <!-- SEO header -->
            <h1 style="display: none">pstack 跟踪进程栈</h1>
            
            <div class="markdown-body">
              <p>此命令可显示每个进程的栈跟踪,且可显示每个线程的栈状态。pstack 命令必须由相应进程的属主或 root 运行。可以使用 pstack 来确定进程挂起的位置。此命令允许使用的唯一选项是要检查的进程的 PID。请参见 proc(1) 手册页。</p>
<p>这个命令在排查进程问题时非常有用，比如我们发现一个服务一直处于work状态（如假死状态，好似死循环），使用这个命令就能轻松定位问题所在；可以在一段时间内，多执行几次pstack，若发现代码栈总是停在同一个位置，那个位置就需要重点关注，很可能就是出问题的地方；</p>
<p>示例：查看bash程序进程栈:</p>
<figure class="highlight less"><table><tr><td class="gutter"><div class="code-wrapper"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br></pre></div></td><td class="code"><pre><code class="hljs less"><span class="hljs-selector-attr">[root@xxxxx ]</span># <span class="hljs-selector-tag">pstack</span> <span class="hljs-selector-tag">16185</span><br><span class="hljs-selector-tag">Thread</span> <span class="hljs-selector-tag">35</span> (Thread <span class="hljs-number">0</span>x7f098b51e700 (LWP <span class="hljs-number">16186</span>)):<br><span class="hljs-selector-id">#0</span>  <span class="hljs-selector-tag">0x00007f09931657fa</span> <span class="hljs-selector-tag">in</span> <span class="hljs-selector-tag">sigwaitinfo</span> () <span class="hljs-selector-tag">from</span> /<span class="hljs-selector-tag">usr</span>/<span class="hljs-selector-tag">lib64</span>/<span class="hljs-selector-tag">libc</span><span class="hljs-selector-class">.so</span><span class="hljs-selector-class">.6</span><br><span class="hljs-selector-id">#1</span>  <span class="hljs-selector-tag">0x0000000000f0f2db</span> <span class="hljs-selector-tag">in</span> <span class="hljs-selector-tag">timer_notify_thread_func</span> (arg=arg<span class="hljs-variable">@entry</span>=<span class="hljs-number">0</span>x7ffc2e5b8af0) <span class="hljs-selector-tag">at</span> /<span class="hljs-selector-tag">export</span>/<span class="hljs-selector-tag">home2</span>/<span class="hljs-selector-tag">pb2</span>/<span class="hljs-selector-tag">build</span>/<span class="hljs-selector-tag">sb_1-32013917-1545390379</span><span class="hljs-selector-class">.14</span>/<span class="hljs-selector-tag">rpm</span>/<span class="hljs-selector-tag">BUILD</span>/<span class="hljs-selector-tag">mysql-5</span><span class="hljs-selector-class">.7</span><span class="hljs-selector-class">.25</span>/<span class="hljs-selector-tag">mysql-5</span><span class="hljs-selector-class">.7</span><span class="hljs-selector-class">.25</span>/<span class="hljs-selector-tag">mysys</span>/<span class="hljs-selector-tag">posix_timers</span><span class="hljs-selector-class">.c</span>:<span class="hljs-selector-tag">77</span><br><span class="hljs-selector-id">#2</span>  <span class="hljs-selector-tag">0x000000000127fae4</span> <span class="hljs-selector-tag">in</span> <span class="hljs-selector-tag">pfs_spawn_thread</span> (arg=<span class="hljs-number">0</span>x2fb02b0) <span class="hljs-selector-tag">at</span> /<span class="hljs-selector-tag">export</span>/<span class="hljs-selector-tag">home2</span>/<span class="hljs-selector-tag">pb2</span>/<span class="hljs-selector-tag">build</span>/<span class="hljs-selector-tag">sb_1-32013917-1545390379</span><span class="hljs-selector-class">.14</span>/<span class="hljs-selector-tag">rpm</span>/<span class="hljs-selector-tag">BUILD</span>/<span class="hljs-selector-tag">mysql-5</span><span class="hljs-selector-class">.7</span><span class="hljs-selector-class">.25</span>/<span class="hljs-selector-tag">mysql-5</span><span class="hljs-selector-class">.7</span><span class="hljs-selector-class">.25</span>/<span class="hljs-selector-tag">storage</span>/<span class="hljs-selector-tag">perfschema</span>/<span class="hljs-selector-tag">pfs</span><span class="hljs-selector-class">.cc</span>:<span class="hljs-selector-tag">2190</span><br><span class="hljs-selector-id">#3</span>  <span class="hljs-selector-tag">0x00007f0994767dc5</span> <span class="hljs-selector-tag">in</span> <span class="hljs-selector-tag">start_thread</span> () <span class="hljs-selector-tag">from</span> /<span class="hljs-selector-tag">usr</span>/<span class="hljs-selector-tag">lib64</span>/<span class="hljs-selector-tag">libpthread</span><span class="hljs-selector-class">.so</span><span class="hljs-selector-class">.0</span><br><span class="hljs-selector-id">#4</span>  <span class="hljs-selector-tag">0x00007f099322528d</span> <span class="hljs-selector-tag">in</span> <span class="hljs-selector-tag">clone</span> () <span class="hljs-selector-tag">from</span> /<span class="hljs-selector-tag">usr</span>/<span class="hljs-selector-tag">lib64</span>/<span class="hljs-selector-tag">libc</span><span class="hljs-selector-class">.so</span><span class="hljs-selector-class">.6</span><br><span class="hljs-selector-tag">Thread</span> <span class="hljs-selector-tag">34</span> (Thread <span class="hljs-number">0</span>x7f097d529700 (LWP <span class="hljs-number">16187</span>)):<br><span class="hljs-selector-id">#0</span>  <span class="hljs-selector-tag">0x00007f099455e644</span> <span class="hljs-selector-tag">in</span> <span class="hljs-selector-tag">__io_getevents_0_4</span> () <span class="hljs-selector-tag">from</span> /<span class="hljs-selector-tag">usr</span>/<span class="hljs-selector-tag">lib64</span>/<span class="hljs-selector-tag">libaio</span><span class="hljs-selector-class">.so</span><span class="hljs-selector-class">.1</span><br><span class="hljs-selector-id">#1</span>  <span class="hljs-selector-tag">0x0000000000fca3d1</span> <span class="hljs-selector-tag">in</span> <span class="hljs-selector-tag">LinuxAIOHandler</span>::<span class="hljs-selector-tag">collect</span> (this=this<span class="hljs-variable">@entry</span>=<span class="hljs-number">0</span>x7f097d528de0) <span class="hljs-selector-tag">at</span> /<span class="hljs-selector-tag">export</span>/<span class="hljs-selector-tag">home2</span>/<span class="hljs-selector-tag">pb2</span>/<span class="hljs-selector-tag">build</span>/<span class="hljs-selector-tag">sb_1-32013917-1545390379</span><span class="hljs-selector-class">.14</span>/<span class="hljs-selector-tag">rpm</span>/<span class="hljs-selector-tag">BUILD</span>/<span class="hljs-selector-tag">mysql-5</span><span class="hljs-selector-class">.7</span><span class="hljs-selector-class">.25</span>/<span class="hljs-selector-tag">mysql-5</span><span class="hljs-selector-class">.7</span><span class="hljs-selector-class">.25</span>/<span class="hljs-selector-tag">storage</span>/<span class="hljs-selector-tag">innobase</span>/<span class="hljs-selector-tag">os</span>/<span class="hljs-selector-tag">os0file</span><span class="hljs-selector-class">.cc</span>:<span class="hljs-selector-tag">2506</span><br><span class="hljs-selector-id">#2</span>  <span class="hljs-selector-tag">0x0000000000fcadfd</span> <span class="hljs-selector-tag">in</span> <span class="hljs-selector-tag">LinuxAIOHandler</span>::<span class="hljs-selector-tag">poll</span> (this=this<span class="hljs-variable">@entry</span>=<span class="hljs-number">0</span>x7f097d528de0, m1=m1<span class="hljs-variable">@entry</span>=<span class="hljs-number">0</span>x7f097d528e80, m2=m2<span class="hljs-variable">@entry</span>=<span class="hljs-number">0</span>x7f097d528e88, request=request<span class="hljs-variable">@entry</span>=<span class="hljs-number">0</span>x7f097d528e90) <span class="hljs-selector-tag">at</span> /<span class="hljs-selector-tag">export</span>/<span class="hljs-selector-tag">home2</span>/<span class="hljs-selector-tag">pb2</span>/<span class="hljs-selector-tag">build</span>/<span class="hljs-selector-tag">sb_1-32013917-1545390379</span><span class="hljs-selector-class">.14</span>/<span class="hljs-selector-tag">rpm</span>/<span class="hljs-selector-tag">BUILD</span>/<span class="hljs-selector-tag">mysql-5</span><span class="hljs-selector-class">.7</span><span class="hljs-selector-class">.25</span>/<span class="hljs-selector-tag">mysql-5</span><span class="hljs-selector-class">.7</span><span class="hljs-selector-class">.25</span>/<span class="hljs-selector-tag">storage</span>/<span class="hljs-selector-tag">innobase</span>/<span class="hljs-selector-tag">os</span>/<span class="hljs-selector-tag">os0file</span><span class="hljs-selector-class">.cc</span>:<span class="hljs-selector-tag">2652</span><br><span class="hljs-selector-id">#3</span>  <span class="hljs-selector-tag">0x0000000000fcd436</span> <span class="hljs-selector-tag">in</span> <span class="hljs-selector-tag">os_aio_linux_handler</span> (request=<span class="hljs-number">0</span>x7f097d528e90, m2=<span class="hljs-number">0</span>x7f097d528e88, m1=<span class="hljs-number">0</span>x7f097d528e80, global_segment=<span class="hljs-number">0</span>) <span class="hljs-selector-tag">at</span> /<span class="hljs-selector-tag">export</span>/<span class="hljs-selector-tag">home2</span>/<span class="hljs-selector-tag">pb2</span>/<span class="hljs-selector-tag">build</span>/<span class="hljs-selector-tag">sb_1-32013917-1545390379</span><span class="hljs-selector-class">.14</span>/<span class="hljs-selector-tag">rpm</span>/<span class="hljs-selector-tag">BUILD</span>/<span class="hljs-selector-tag">mysql-5</span><span class="hljs-selector-class">.7</span><span class="hljs-selector-class">.25</span>/<span class="hljs-selector-tag">mysql-5</span><span class="hljs-selector-class">.7</span><span class="hljs-selector-class">.25</span>/<span class="hljs-selector-tag">storage</span>/<span class="hljs-selector-tag">innobase</span>/<span class="hljs-selector-tag">os</span>/<span class="hljs-selector-tag">os0file</span><span class="hljs-selector-class">.cc</span>:<span class="hljs-selector-tag">2708</span><br><span class="hljs-selector-id">#4</span>  <span class="hljs-selector-tag">os_aio_handler</span> (segment=segment<span class="hljs-variable">@entry</span>=<span class="hljs-number">0</span>, m1=m1<span class="hljs-variable">@entry</span>=<span class="hljs-number">0</span>x7f097d528e80, m2=m2<span class="hljs-variable">@entry</span>=<span class="hljs-number">0</span>x7f097d528e88, request=request<span class="hljs-variable">@entry</span>=<span class="hljs-number">0</span>x7f097d528e90) <span class="hljs-selector-tag">at</span> /<span class="hljs-selector-tag">export</span>/<span class="hljs-selector-tag">home2</span>/<span class="hljs-selector-tag">pb2</span>/<span class="hljs-selector-tag">build</span>/<span class="hljs-selector-tag">sb_1-32013917-1545390379</span><span class="hljs-selector-class">.14</span>/<span class="hljs-selector-tag">rpm</span>/<span class="hljs-selector-tag">BUILD</span>/<span class="hljs-selector-tag">mysql-5</span><span class="hljs-selector-class">.7</span><span class="hljs-selector-class">.25</span>/<span class="hljs-selector-tag">mysql-5</span><span class="hljs-selector-class">.7</span><span class="hljs-selector-class">.25</span>/<span class="hljs-selector-tag">storage</span>/<span class="hljs-selector-tag">innobase</span>/<span class="hljs-selector-tag">os</span>/<span class="hljs-selector-tag">os0file</span><span class="hljs-selector-class">.cc</span>:<span class="hljs-selector-tag">6254</span><br><span class="hljs-selector-id">#5</span>  <span class="hljs-selector-tag">0x0000000001197d5f</span> <span class="hljs-selector-tag">in</span> <span class="hljs-selector-tag">fil_aio_wait</span> (segment=segment<span class="hljs-variable">@entry</span>=<span class="hljs-number">0</span>) <span class="hljs-selector-tag">at</span> /<span class="hljs-selector-tag">export</span>/<span class="hljs-selector-tag">home2</span>/<span class="hljs-selector-tag">pb2</span>/<span class="hljs-selector-tag">build</span>/<span class="hljs-selector-tag">sb_1-32013917-1545390379</span><span class="hljs-selector-class">.14</span>/<span class="hljs-selector-tag">rpm</span>/<span class="hljs-selector-tag">BUILD</span>/<span class="hljs-selector-tag">mysql-5</span><span class="hljs-selector-class">.7</span><span class="hljs-selector-class">.25</span>/<span class="hljs-selector-tag">mysql-5</span><span class="hljs-selector-class">.7</span><span class="hljs-selector-class">.25</span>/<span class="hljs-selector-tag">storage</span>/<span class="hljs-selector-tag">innobase</span>/<span class="hljs-selector-tag">fil</span>/<span class="hljs-selector-tag">fil0fil</span><span class="hljs-selector-class">.cc</span>:<span class="hljs-selector-tag">5854</span><br><span class="hljs-selector-id">#6</span>  <span class="hljs-selector-tag">0x0000000001080458</span> <span class="hljs-selector-tag">in</span> <span class="hljs-selector-tag">io_handler_thread</span> (arg=&lt;optimized out&gt;) <span class="hljs-selector-tag">at</span> /<span class="hljs-selector-tag">export</span>/<span class="hljs-selector-tag">home2</span>/<span class="hljs-selector-tag">pb2</span>/<span class="hljs-selector-tag">build</span>/<span class="hljs-selector-tag">sb_1-32013917-1545390379</span><span class="hljs-selector-class">.14</span>/<span class="hljs-selector-tag">rpm</span>/<span class="hljs-selector-tag">BUILD</span>/<span class="hljs-selector-tag">mysql-5</span><span class="hljs-selector-class">.7</span><span class="hljs-selector-class">.25</span>/<span class="hljs-selector-tag">mysql-5</span><span class="hljs-selector-class">.7</span><span class="hljs-selector-class">.25</span>/<span class="hljs-selector-tag">storage</span>/<span class="hljs-selector-tag">innobase</span>/<span class="hljs-selector-tag">srv</span>/<span class="hljs-selector-tag">srv0start</span><span class="hljs-selector-class">.cc</span>:<span class="hljs-selector-tag">311</span><br><span class="hljs-selector-id">#7</span>  <span class="hljs-selector-tag">0x00007f0994767dc5</span> <span class="hljs-selector-tag">in</span> <span class="hljs-selector-tag">start_thread</span> () <span class="hljs-selector-tag">from</span> /<span class="hljs-selector-tag">usr</span>/<span class="hljs-selector-tag">lib64</span>/<span class="hljs-selector-tag">libpthread</span><span class="hljs-selector-class">.so</span><span class="hljs-selector-class">.0</span><br><span class="hljs-selector-id">#8</span>  <span class="hljs-selector-tag">0x00007f099322528d</span> <span class="hljs-selector-tag">in</span> <span class="hljs-selector-tag">clone</span> () <span class="hljs-selector-tag">from</span> /<span class="hljs-selector-tag">usr</span>/<span class="hljs-selector-tag">lib64</span>/<span class="hljs-selector-tag">libc</span><span class="hljs-selector-class">.so</span><span class="hljs-selector-class">.6</span><br><br></code></pre></td></tr></table></figure>
            </div>
            <hr>
            <div>
              <div class="post-metas mb-3">
                
                  <div class="post-meta mr-3">
                    <i class="iconfont icon-category"></i>
                    
                      <a class="hover-with-bg" href="/categories/%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/">软件开发</a>
                    
                  </div>
                
                
                  <div class="post-meta">
                    <i class="iconfont icon-tags"></i>
                    
                      <a class="hover-with-bg" href="/tags/linux/">linux</a>
                    
                      <a class="hover-with-bg" href="/tags/tools/">tools</a>
                    
                  </div>
                
              </div>
              
                <p class="note note-warning">
                  
                    本博客所有文章除特别声明外，均采用 <a target="_blank" href="https://creativecommons.org/licenses/by-sa/4.0/deed.zh" rel="nofollow noopener noopener">CC BY-SA 4.0 协议</a> ，转载请注明出处！
                  
                </p>
              
              
                <div class="post-prevnext">
                  <article class="post-prev col-6">
                    
                    
                      <a href="/2020/08/22/05%E5%88%86%E5%B8%83%E5%BC%8F%E5%8F%8A%E6%95%B0%E6%8D%AE%E5%BA%93/03%20squid/01%20suqid%20%E5%AD%98%E5%82%A8%E6%A8%A1%E5%9E%8B%E7%A0%94%E7%A9%B6/">
                        <i class="iconfont icon-arrowleft"></i>
                        <span class="hidden-mobile">suqid 存储模型研究</span>
                        <span class="visible-mobile">上一篇</span>
                      </a>
                    
                  </article>
                  <article class="post-next col-6">
                    
                    
                      <a href="/2020/08/20/03%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/03linux/06strace%E8%B7%9F%E8%B8%AA%E8%BF%9B%E7%A8%8B%E4%B8%AD%E7%9A%84%E7%B3%BB%E7%BB%9F%E8%B0%83%E7%94%A8/">
                        <span class="hidden-mobile">strace 跟踪进程中的系统调用</span>
                        <span class="visible-mobile">下一篇</span>
                        <i class="iconfont icon-arrowright"></i>
                      </a>
                    
                  </article>
                </div>
              
            </div>

            
          </article>
        </div>
      </div>
    </div>
    
      <div class="d-none d-lg-block col-lg-2 toc-container" id="toc-ctn">
        <div id="toc">
  <p class="toc-header"><i class="iconfont icon-list"></i>&nbsp;目录</p>
  <div class="toc-body" id="toc-body"></div>
</div>

      </div>
    
  </div>
</div>

<!-- Custom -->


    

    
      <a id="scroll-top-button" aria-label="TOP" href="#" role="button">
        <i class="iconfont icon-arrowup" aria-hidden="true"></i>
      </a>
    

    
      <div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">搜索</h4>
        <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input type="text" id="local-search-input" class="form-control validate">
          <label data-error="x" data-success="v"
                 for="local-search-input">关键词</label>
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>
    

    
  </main>

  <footer class="text-center mt-5 py-3">
  <div class="footer-content">
     <a href="https://hexo.io" target="_blank" rel="nofollow noopener"><span>Hexo</span></a> <i class="iconfont icon-love"></i> <a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener"><span>Fluid</span></a> 
  </div>
  

  

  
</footer>


  <!-- SCRIPTS -->
  
  <script  src="https://cdn.jsdelivr.net/npm/nprogress@0/nprogress.min.js" ></script>
  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/nprogress@0/nprogress.min.css" />

  <script>
    NProgress.configure({"showSpinner":false,"trickleSpeed":100})
    NProgress.start()
    window.addEventListener('load', function() {
      NProgress.done();
    })
  </script>


<script  src="https://cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js" ></script>
<script  src="https://cdn.jsdelivr.net/npm/bootstrap@4/dist/js/bootstrap.min.js" ></script>
<script  src="/js/events.js" ></script>
<script  src="/js/plugins.js" ></script>

<!-- Plugins -->


  <script  src="/js/local-search.js" ></script>



  
    <script  src="/js/img-lazyload.js" ></script>
  



  



  
    <script  src="https://cdn.jsdelivr.net/npm/tocbot@4/dist/tocbot.min.js" ></script>
  
  
    <script  src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3/dist/jquery.fancybox.min.js" ></script>
  
  
    <script  src="https://cdn.jsdelivr.net/npm/anchor-js@4/anchor.min.js" ></script>
  
  
    <script defer src="https://cdn.jsdelivr.net/npm/clipboard@2/dist/clipboard.min.js" ></script>
  






  <script  src="https://cdn.jsdelivr.net/npm/typed.js@2/lib/typed.min.js" ></script>
  <script>
    (function (window, document) {
      var typing = Fluid.plugins.typing;
      var title = document.getElementById('subtitle').title;
      
        typing(title);
      
    })(window, document);
  </script>















<!-- 主题的启动项 保持在最底部 -->
<script  src="/js/boot.js" ></script>


</body>
</html>
